<div class="login-container flex-center position-ref full-height">
    <div class="container">
      <div class="row">
        <div class="col-md-6 offset-md-3">
            <div class="card login-card">
                <h1 class="title">Global Access Admin</h1>
                <div class="d-flex align-items-center">
                    <h5 class="sub-title mr-auto">Sign In to continue</h5>
                    <h5 class="sub-title ml-auto" *ngIf="error" class="ml-auto text-danger"><i class="ti-alert"></i> Invalid Credentials</h5>
                </div>

                <form name="form" (ngSubmit)="f.form.valid && login()" #f="ngForm" novalidate>
                    <div class="form-group">
                        <input type="text" class="form-control text-input" name="username" [ngClass]="{'is-invalid': error}" [(ngModel)]="model.username" placeholder="Email address" #username="ngModel" required />
                    </div>
                    <div class="form-group">
                        <input type="password" class="form-control text-input" name="password" [ngClass]="{'is-invalid': error}" [(ngModel)]="model.password" placeholder="Password" #password="ngModel" required #passwordField />
                    </div>
                    <div class="row mb-2">
                        <div class="col-6">
                            <input type="checkbox" id="rememberMeCheckBox" class="remember-checkbox">
                            <label for="rememberMeCheckBox" class="remember-label">Remember me</label>
                        </div>
                        <div class="col-6 text-right">
                            <a class="small" (click)="toggleShowPassword()" href="javascript:;;">{{ !showPass ? 'Show' : 'Hide' }} password</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-block sign-in-btn">Sign In</button>
                    </div>
                    <div class="row">
                        <div class="col-6">
                            <a class="small" [routerLink]="['reset']" href="javascript:;;">Forgot password</a>
                        </div>
                        <div class="col-6 text-right">
                            <a class="small" href="mailto:client@sustainalytics.com">Contact Us</a>
                        </div>
                    </div>
                </form>
            </div>
            <div class="mt-3 ml-5 mr-5">
                <span class="small float-left ml-4">&copy; Sustainalytics. All Rights Reserved.</span>
                <a class="small float-right mr-4" href="https://www.sustainalytics.com/about-us" target="_blank">About Sustainalytics</a>
            </div>
        </div>
      </div>
    </div>
</div>